package org.example.backend.entity;


public class NewsItem {
    private String title;
    private String url;
    private String publisher;
    private String date;

    public NewsItem(String title, String url, String publisher, String date) {
        this.title = title;
        this.url = url;
        this.publisher = publisher;
        this.date = date;
    }

    public String getTitle() { return title; }
    public void setTitle(String title) { this.title = title; }
    public String getUrl() { return url; }
    public void setUrl(String url) { this.url = url; }
    public String getPublisher() { return publisher; }
    public void setPublisher(String publisher) { this.publisher = publisher; }
    public String getDate() { return date; }
    public void setDate(String date) { this.date = date; }
}

